﻿using Project.Core.Api.Common.Base;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace Project.Core.Api.Controllers.Organization.Dto
{
    /// <summary>
    /// Organization
    /// </summary>
    public class OrganizationDto : BaseDto
    {
        /// <summary>
        /// 组织机构代码
        /// </summary>
        public string OrganizationCode { get; set; }

        /// <summary>
        /// 组织机构名称
        /// </summary>
        public string OrganizationName { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 所属上级
        /// </summary>
        public int Belong { get; set; }

        /// <summary>
        /// 组织机构子项
        /// </summary>
        public List<OrganizationDto> Children { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string Creater { get; set; }
    }
}
